package adv3;

public class StrTest2 {

	public static void main(String[] args) {
		String s1 = "JAVA";
		String s2 = "java";
		String s3 = s2;
		s2 = "csharp";
		System.out.println("s3=" + s3);
		s1 = s1.toLowerCase();// String有不变性
		// 对他的任何改变，都会产生一个新String
		System.out.println(s1);
		System.out.println(s1.equals(s2));
	}

}
